XT

piso anti push

Por Xtibianoo01, 24 de abr. de 2019 em Scripts

6
3.3k
Xtibianoo01X
24 de abril de 2019 às 20:21

alguém tem um piso que não deixar o player ser pushado.

 

 

+rep

WooXW
24 de abril de 2019 às 22:55

Eu posso fazer. Você quer que quando o player estiver em cima desse piso ele não possa ser puxado é isso?

Xtibianoo01X
24 de abril de 2019 às 23:34
38 minutos atrás, Woox disse:

Eu posso fazer. Você quer que quando o player estiver em cima desse piso ele não possa ser puxado é isso?

sim ou colocar e uma area , igual aquele script que kicka o player. 

WooXW
24 de abril de 2019 às 23:57
Melhor resposta
Agora, Xtibianoo01 disse:

sim ou colocar e uma area , igual aquele script que kicka o player. 

Coloca o Action ID 7955 no ground.

--<event type="push" name="AntiPush" event="script" value="antipush.lua"/>--
--<event type="login" name="RegisterAntiPush" event="script" value="antipush.lua"/>--

function onPush(cid, target, ground, position)
	local groundAid = getTileInfo(getThingPos(target)).aid
	if isPlayer(cid) and isPlayer(target) and cid ~= target and groundAid == 7955 then
		doPlayerSendCancel(cid, "You can't push someone out of this ground.")
		return false
	end
	return true
end

function onLogin(cid)
	registerCreatureEvent(cid, "AntiPush")
	return true
end

 

 

mister17M
25 de abril de 2019 às 18:53

Reputado @Woox Parabens pelo seu trabalho.

 

Se puder me ajudar nos meus pedidos agradeço :) irei deixa-los abaixo.

 

Versão 0.3.6 -8.54

 

 ou

 

Se puder ajudar agradeço :) estou há um tempo neste projeto e estou terminando eu mapa mas preciso desses scripts para montar um sistema de dungeon.

 

 

2 meses depois...
RIANLHPR
04 de junho de 2019 às 22:16
Em 24/04/2019 em 23:57, Woox disse:

Coloca o Action ID 7955 no ground.

--<event type="push" name="AntiPush" event="script" value="antipush.lua"/>--
--<event type="login" name="RegisterAntiPush" event="script" value="antipush.lua"/>--

function onPush(cid, target, ground, position)
	local groundAid = getTileInfo(getThingPos(target)).aid
	if isPlayer(cid) and isPlayer(target) and cid ~= target and groundAid == 7955 then
		doPlayerSendCancel(cid, "You can't push someone out of this ground.")
		return false
	end
	return true
end

function onLogin(cid)
	registerCreatureEvent(cid, "AntiPush")
	return true
end

 

 

Boa, vlw rep +